package com.xiaofeixia.common;

public enum ResultEnum {
    UNKNOWN_ERROR(-1, "未知错误"),
    SUCCESS(1, "操作成功"),
    NETWORK_ERROR(100, "网络异常，请稍后再试！"),
    NOT_FOUND(404, "内容未找到！");

    private int code;

    private String msg;

    ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
